package test;

import java.util.Iterator;


import RJ.Environment;
import RJ.Person;

public class Driver {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		//String inputFileName = "test1.in";//arg[3]
		String inputFileName = args[0];
		String outputFileName = inputFileName + ".out";
		
		Environment env = new Environment("ENV");
		env.fromFile(inputFileName);
		//env.fromFile("test2.in");
		//System.out.println(env);
		
		//time limit, in millisecond
		//int timeLimit = 3000;			// 3 seconds
		
		int timeLimit;
		timeLimit = Integer.parseInt(args[1]);
		
		
		env.assignPersonToRoom(timeLimit, outputFileName);
		
		//env.writeSolution(outputFileName);
	}
//
}
